package com.leyou.item.service;

import com.leyou.common.domain.PageResult;
import com.leyou.dto.SkuDTO;
import com.leyou.dto.SpuDetailDTO;
import com.leyou.dto.SpuDto;

import java.util.List;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/08 11:43
 * @description:
 */
public interface GoodsService {
	PageResult<SpuDto> pageQuerySpu(String key, Boolean saleable, Integer page, Integer rows);

	void addGood(SpuDto spuDto);

	SpuDetailDTO querySpuDetailBySpuId(Long spuId);

	List<SkuDTO> querySkuBySpuId(Long spuId);

	void editGood(SpuDto spuDto);

	void updateSaleable(Long spuId, Boolean saleable);
}
